module.exports = {
    entry: {
        "index": "./src/index.js",
        "board": "./src/board.js",
        "search": "./src/search.js",
        "comment": "./src/comment.js",
        "subject": "./src/subject.js",
        "list": "./src/list.js"
    },
    output: {
        path: "./build/js/",
        filename: "[name].js"
    },
     externals: {
        jquery: 'jQuery'
    },
    module: {
        loaders: [{
            test: /\.json$/,
            loader: "json"
        },
        {
            test: /\.js$/,
            exclude: /node_modules/,
            loader: 'babel', 
            query: {
                presets: ['es2015']
            }
        },  
        {
            test: /\.css$/,
            loader: 'style!css'//添加对样式表的处理
        }]
    }
}